<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:a="http://richfaces.org/a4j">

	
		<h:panelGrid columns="2">
			<h:outputText value="#{flightmsgs['fromCity']}" />
			<h:selectOneMenu id="cbCityFrom" value="#{newFlight.selectedCityFrom}" 
					onchange="submit()" valueChangeListener="#{newFlight.cityFromValueChanged}" 
					immediate="true">
				<f:selectItems value="#{newFlight.cityFroms}" />
			</h:selectOneMenu>
			<h:outputText value="#{flightmsgs['toCity']}" />
			<h:selectOneMenu value="#{newFlight.selectedFlightLine}" id="cbCityTo">
				<f:selectItems value="#{newFlight.cityToes}" />
			</h:selectOneMenu>
			<h:outputText value="#{flightmsgs['plane']}" />
			<h:selectOneMenu value="#{newFlight.selectedPlane}" onchange="submit()" 
					valueChangeListener="#{newFlight.planeValueChanged}" immediate="true">
				<f:selectItems value="#{newFlight.planes}" />
			</h:selectOneMenu>
			<h:outputText value="#{flightmsgs['departDate']}" />
			<rich:calendar id="calDepartDate" required="true"
				value="#{newFlight.selectedDepartDate}" popup="true"
				datePattern="d/M/yy HH:mm">
				<f:convertDateTime pattern="d/M/yy HH:mm" />
			</rich:calendar>
			
			<h:outputText value="#{flightmsgs['arriveDate']}" />
			<rich:calendar id="calArriveDate" required="true"
				value="#{newFlight.selectedArriveDate}" popup="true"
				datePattern="d/M/yy HH:mm">
				<f:convertDateTime pattern="d/M/yy HH:mm" />
			</rich:calendar>
		</h:panelGrid>
		<h:panelGrid >
		</h:panelGrid>
</ui:composition>